<%@ page import="com.ftg.learn.util.BaseResultSet" %>
<%@ page import="java.util.List" %>
<%@ page import="com.ftg.learn.entity.User" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<table>
    <tr>
        <td>编号</td>
        <td>姓名</td>
        <td>邮箱</td>
    </tr>
    <%
        BaseResultSet brs = (BaseResultSet) request.getAttribute("userlist");
        List<User> user = (List<User>) brs.getData();
        for(int i = 0;i < user.size();i++){

    %>
    <tr>
        <td><%=user.get(i).getDid()%></td>
        <td><%=user.get(i).getUname()%></td>
        <td><%=user.get(i).getUemail()%></td>
    </tr>
    <%
        }
    %>
</table>
</body>
</html>
